from pydantic import BaseModel, Field
from typing import Optional
from datetime import datetime

import pydantic


class BaseSchema(BaseModel):
    pass
    # remark: Optional[str] = Field(description="备注")


class RecodeMixinSchema():
    id: int | None = Field(default=None, description="ID")
    created_time: datetime | None = Field(description="创建时间")
    created_by: str | None = Field(default=None, description="创建者")
    updated_time: datetime | None = Field(description="更新时间")
    updated_by: str | None = Field(default=None, description="更新者")
    deleted_time: datetime | None = Field(description="删除时间")
    deleted_by: str | None = Field(default=None, description="删除者")
    is_deleted: int | None = Field(default=None, description="是否删除")
# class RecodeMixinSchema():
#     id: int = Field(None, description="ID")
#     created_time: Optional[datetime] = Field(
#         description="创建时间")
#     created_by: Optional[str] = Field(
#         None,
#         description="创建者"
#     )  # 暂时设置为 可选参数 optional 需要在orm中自动提取jwt中的user
#     updated_time: Optional[datetime] = Field(
#         description="更新时间")
#     updated_by: str | None = Field(
#         default=None,
#         description="更新者"
#     )  # 暂时设置为 可选参数 optional 需要在orm中自动提取jwt中的user
#     deleted_time: Optional[datetime] = Field(

#         description="删除时间")
#     deleted_by: Optional[str] = Field(None, description="删除者")
#     is_deleted: Optional[int] = Field(None, description="是否删除")
